export default {
  autoRefresh: {
    type: 'object',
    layout: 'inline',
    style: {
      'grid-template-columns': '2fr 1fr 1fr'
    },
    options: {
      enabled: {
        type: 'checkbox',
        title: '自动刷新',
        defaultValue: false
      },
      interval: {
        type: 'inputGroup',
        options: {
          time: {
            type: 'inputNumber',
            defaultValue: 5,
            options: {
              min: 1
            }
          },
          unit: {
            type: 'select',
            defaultValue: 'm',
            options: [
              { label: '时', value: 'h' },
              { label: '分', value: 'm' },
              { label: '秒', value: 's' }
            ]
          }
        }
      }
    }
  }
}
